home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / cli / gulam.arc / examples.arc / UA.G < prev   
Text File  |  1989-01-09  |  679b  |  31 lines

  1. # -------------------------------------------
  2. # Copy a file to ram disk, 
  3. # UUdecode it
  4. # deARC it
  5. # -------------------------------------------
  6. # Works only for files with a certain naming conventions:
  7. # Example:
  8. # Suppose a bunch of files have been collected into    JUNK.ARC .
  9. # UUE has been used to create    JUNK.UUE .
  10. # Somehow this last file is now on disk A:\  and you want to
  11. # to recover the original bunch files, of files on drive D:.
  12. # Type    ua JUNK. 
  13.  
  14. set fu $1.uue
  15. set fa $1.arc
  16.  
  17. # copy the file to  D:
  18. echo    cp    a:\$fu    d:\
  19.     cp    a:\$fu    d:\
  20.     
  21. # UUDECODE it
  22. echo    uud    d:\$fu    
  23.     uud    d:\$fu
  24. unset fu    
  25.  
  26. echo    arc v    d:\$fa 
  27.     arc v    d:\$fa 
  28. unset fa
  29.  
  30. exit
  31.